package testing.domain.factory;

import testing.domain.person.Administrator;
import testing.domain.person.Student;
import testing.domain.question.Question;
import testing.domain.test.Test;


public class TheTestingSystem implements AbstractTestingSystem {
    private String systemName;
    public TheTestingSystem(String systemName)
    {
        this.systemName = systemName;
    }
    public Question createQuestion(int questionId, String name, String rightAnswer,String[] answers) {
       return new Question(questionId,name,rightAnswer,answers);
    }
    public Student createStudent(int studentId, String name, String surname, String password, String group, int grade){
        return new Student(studentId,name,surname,password,group,grade);
    }
    public Administrator createAdministrator(int administratorId, String name, String surname, String password){
        return new Administrator(administratorId,name,surname,password);
    }
    public Test createTest(String name) {
        return new Test(name);
    }
    public String getTheTestingSystemName()
    {
        return systemName;
    }
}      